<template>
  <div class="banner-container">
    <div class="banner">
      <div class="banner-content">
        <div class="banner-text">
          <h2 class="banner-title">纪念中国人民抗日战争暨世界反法西斯战争胜利80周年</h2>
          <p class="banner-subtitle">让和平之声 在大地永远回荡</p>
        </div>
        <div class="banner-image">
          <div class="great-wall">🏔️</div>
          <div class="birds">🕊️</div>
        </div>
      </div>
      
      <!-- 轮播指示器 -->
      <div class="carousel-dots">
        <span class="dot active"></span>
        <span class="dot"></span>
        <span class="dot"></span>
      </div>
      
      <!-- 导航箭头 -->
      <button class="nav-arrow left">‹</button>
      <button class="nav-arrow right">›</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Banner'
}
</script>

<style scoped>
.banner-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.banner {
  position: relative;
  background: linear-gradient(135deg, #ffb3b3, #ffd6b3);
  border-radius: 12px;
  height: 200px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}

.banner-text {
  flex: 1;
  color: #333;
}

.banner-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 15px 0;
  line-height: 1.4;
  color: #8b0000;
}

.banner-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: #c20c0c;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.banner-image {
  position: relative;
  width: 200px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.great-wall {
  font-size: 80px;
  position: absolute;
  left: 20px;
  bottom: 20px;
}

.birds {
  font-size: 40px;
  position: absolute;
  right: 30px;
  top: 20px;
  animation: fly 3s ease-in-out infinite;
}

@keyframes fly {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background: white;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-arrow:hover {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-arrow.left {
  left: 20px;
}

.nav-arrow.right {
  right: 20px;
}
</style>
